package com.whc.orders.service;


import com.whc.api.dto.OrderAndGoodsDto;
import com.whc.api.dto.OrderDto;
import com.whc.orders.domain.entity.Orders;

import java.util.List;


public interface OrdersService {
    //添加订单
    Long addOrder(OrderDto orderDto);

    //修改订单为已支付
    void toPayOrder(Long orderNumber);

    //取消订单
    void cancelOrder(Long orderNumber);

    //查询历史订单
    List<Orders> selectUserAll(Long userId);

    //根据订单号查询相关商品
    List<OrderAndGoodsDto> selectGoodsByOrderNumber(Long orderNumber);

    List<Orders> selectAll();

}
